package org.dormnet.dao.mapping;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Date;

import org.dormnet.dao.bean.Diarycomment;

public class DiarycommentMapping implements BeanMapping {

	public Object mapping(ResultSet resultSet) throws SQLException {
		Diarycomment diarycomment = new Diarycomment();
		diarycomment.setContent(resultSet.getString("content"));
		diarycomment.setDaid(resultSet.getInt("daid"));
		diarycomment.setIsdeleted(resultSet.getInt("isdeleted"));
		diarycomment.setDctime(resultSet.getDate("dctime"));
		diarycomment.setCommentor(resultSet.getInt("commentor"));
		
		return diarycomment;
	}

}
